# tasks/models.py
from django.db import models


class Task(models.Model):
    name = models.CharField(verbose_name="任务名称", max_length=65, blank=True)
    status = models.CharField(verbose_name="任务状态", max_length=10, blank=True)
    reporter = models.CharField(verbose_name="任务申请人", max_length=10, null=True, blank=True)
    time = models.DateTimeField(verbose_name="任务时间", max_length=20, null=True, blank=True)

    class Meta:
        verbose_name = "任务信息"
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.name
